<script>
	export default {
		onLaunch: function() {
			// console.log(uni.getStorageSync("appid"),"onLauchAppid");
			if(!uni.getStorageSync("user") || !uni.getStorageSync("token")){
			    uni.removeStorageSync("user");
				uni.removeStorageSync("token");
				uni.removeStorageSync("appid");
				uni.reLaunch({
					url:"/pages/login/login"
				})
			}
		},
		onShow: function() {
			// console.log(uni.getStorageSync("appid"),"onShowAppid");
			if(!uni.getStorageSync("user") || !uni.getStorageSync("token")){
				uni.removeStorageSync("user");
				uni.removeStorageSync("token");
				uni.removeStorageSync("appid");
				uni.reLaunch({
					url:"/pages/login/login"
				})
			}
		},
		onHide: function() {
			// console.log(uni.getStorageSync("appid"),"onHideAppid");
			// console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";
	@import url("./static/iconfont/icons.css");
	@import url("./static/main.css");
</style>